set the visible of card field 1 to not the visible of card field 1
if the visible of card field 1 is true then
set the name of me to "Hide LSP Source"
else set the name of me to "Show LSP Source"
end mouseUp
-- part contents for background part 16
----- text -----
CLIPTOPICT XFCN version 1.0
Kevin Calhoun
ClipToPICT creates a PICT resource from a picture you've copied to the clipboard and copies it to the current stack. You can tell ClipToPICT what ID number you want the PICT resource to have, or you can let it select an unused number for you. If you choose a number that belongs to another PICT resource currently contained in your stack, the new picture will overwrite the old one.
You'll know when there's a picture on the clipboard by examing HyperCard's edit menu. If the paste item says "Paste Picture," then there's a picture available for ClipToPICT to turn into a PICT resource.
INVOKING CLIPTOPICT
get ClipToPICT(pictID,pictName)
result: resourceID
You must pass a number in the pictID parameter. If you pass 0, ClipToPICT will find an unused ID number to assign the new PICT resource and, if it is copied successfully, return that ID. If you pass any other number, ClipToPICT will use that number as the ID of the new PICT resource, replacing any old PICT resource in the current stack with the same ID, and, if it is copied successfully, return the same number.
You don't have to name the new PICT resource--the pictName parameter is optional. If you specify a name that already belongs to a PICT resource in the current stack, ClipToPICT will replace the old resource with the new one.
If the clipboard contains no pictures, or if there was a problem accessing the scrap, opening the current stack's resource file, or writing the resource, Install Picture will return an error message. Word 1 of this message will be "Error."
EXAMPLES
put ClipToPICT(0,"The Little Engine That Could") into pictNumber